package com.example.batchdemo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * @author Vince Qian
 * @create 24 Jan 2019
 * @description 批量更新错误数据
 */

@ApiModel(description = "批量更新数据")
@Data
@AllArgsConstructor
public class BulkAdjustment {

	@ApiModelProperty(value = "编号", required = true)
    private Integer bulkAdjNum;

	@ApiModelProperty(value = "文件类型", required = true)
    private String fileType;

	@ApiModelProperty(value = "文件名")
    private String fileName;
    
	@ApiModelProperty(value = "文件源路径")
    private String srcFilePath;
    
	@ApiModelProperty(value = "文件目标路径")
    private String targetFilePath;
    
	@ApiModelProperty(value = "交易日期")
    private LocalDate businessDate;
    
	@ApiModelProperty(value = "状态")
    private String status;
	
	@ApiModelProperty(value = "总记录数")
	private Integer numOfRecords;
	
	@ApiModelProperty(value = "新增记录数")
	private Integer numOfCreatedRecords;
	
	@ApiModelProperty(value = "更新记录数")
	private Integer numOfModifiedRecords;
	
	@ApiModelProperty(value = "更新记录数")
	private Integer numOfDeletedRecords;
	
	@ApiModelProperty(value = "略过记录数")
	private Integer numOfSkippedRecords;

	List<BulkAdjUser> bulkAdjUsers;

	List<BulkAdjustmentError> errorDataList;
	
	public BulkAdjustment() {
		this.status = "PD";
		this.numOfRecords = 0;
		this.numOfCreatedRecords = 0;
		this.numOfModifiedRecords = 0;
		this.numOfDeletedRecords = 0;
		this.numOfSkippedRecords = 0;
	}

}